package com.gitee.chessboard.menu;

import com.intellij.openapi.actionSystem.*;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.Messages;

/**
 * @author 敲代码的旺财
 * @date 2021/12/16 14:56
 */
public class DictionaryManagerMenu extends AnAction {

    public final static String DB_CODE = "com.gitee.chessboard.dictionary-plugin-idea.db";
    public final static String USERNAME_CODE = "com.gitee.chessboard.dictionary-plugin-idea.username";
    public final static String PASSWORD_CODE = "com.gitee.chessboard.dictionary-plugin-idea.password";

    @Override
    public void actionPerformed(AnActionEvent event) {
        Project project = event.getData(PlatformDataKeys.PROJECT);
        DictionaryManagerMenuForm form = new DictionaryManagerMenuForm(project);
        form.show();
    }
}
